package com.mikhailenko.transportMVC.service;

import java.util.List;

import com.mikhailenko.transportMVC.exeption.FirmNotFoundExeption;
import com.mikhailenko.transportMVC.model.Firm;



public interface FirmService {
	public Firm create(Firm firm);

	public Firm delete(int id) throws FirmNotFoundExeption;

	public List<Firm> findAll();

	public Firm update(Firm firm) throws FirmNotFoundExeption;

	public Firm findById(int id);
	
	public Firm findByName(String name);
}
